package com.simple.mq.test.controller;


import com.simple.mq.boot.starter.util.MqSendUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 项目: simple-mq
 *
 * 功能描述:
 *
 * @author: WuChengXing
 *
 * @create: 2024-01-21 13:34
 **/
@RestController
@RequestMapping("/test")
public class SendController {

    @Resource
    private MqSendUtil mqSendUtil;

    @GetMapping("/send")
    public String send() {
        mqSendUtil.send("测试spring的发送！！", "spring.queue.test");
        return "ok";
    }
}
